package com.desk.api.emtity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("temphum")
public class TempHum {

  @TableId(type = IdType.ASSIGN_ID)
  private Long id;

  @Schema(description = "温度")
  private BigDecimal temp;

  @Schema(description = "湿度")
  private BigDecimal hum;

  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private LocalDateTime createTime;
}
